﻿using System;
using System.Globalization;

public partial class Search : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string keyWord = Request["q"];
        string categoryType = Request["t"];
        if (string.IsNullOrEmpty(keyWord) && string.IsNullOrEmpty(categoryType))
            Server.Transfer("~/Index.html");
        else if (string.IsNullOrEmpty(keyWord) && !string.IsNullOrEmpty(categoryType))
            Server.Transfer(string.Format(CultureInfo.InvariantCulture, "~/Index{0}.html", categoryType));
    }
}
